<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      li {
        width: 100px;
        height: 100px;
      }

      .d1 {
        display: none;
        visibility: hidden;
      }
    </style>
  </head>
  <body>
    <ul style="overflow:hidden">
      <li style="float: left;">123</li>
    </ul>

    <script>
      var name = 'sss'
      function func1() {
        console.log(name)
      }
      function func2() {
        var name = 'ddd'
        function intr() {
          func1()
        }
        intr()
      }
      func2()
    </script>
  </body>
</html>
